package com.wmh.baseservice.user.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;

/**
 * @author wmh generator
 * @since 2022-04-28
 */
@ApiModel(value="UsAfterSaleApply对象", description="用户售后申请记录表")
public class UsAfterSaleApply implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "状态:	0：商家审核中	1：待寄回	2：已退款	-1：已拒绝")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

    private Date createTime;

    private Date updateTime;

    @ApiModelProperty(value = "用户id")
    private Long usId;

    @ApiModelProperty(value = "订单号")
    private String orderNum;

    @ApiModelProperty(value = "1：普通商品  2：团购商品  3：平台商品")
    private Integer type;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundAmount;

    @ApiModelProperty(value = "寄出地址")
    private String sendAddress;

    @ApiModelProperty(value = "退货地址")
    private String refundAddress;

    @ApiModelProperty(value = "商家拒绝原因")
    private String refusedReason;

    @ApiModelProperty(value = "用户退款理由")
    private String redundReason;

    @ApiModelProperty(value = "凭证")
    private String img;

    @ApiModelProperty(value = "寄回快递单号")
    private String courierNumber;

    @ApiModelProperty(value = "退款类型")
    private Integer refundType;

    @ApiModelProperty(value = "详细描述")
    private String content;

    public Long getId() {
        return id;
    }

    public UsAfterSaleApply setId(Long id) {
        this.id = id;
        return this;
    }
    public Integer getStatus() {
        return status;
    }

    public UsAfterSaleApply setStatus(Integer status) {
        this.status = status;
        return this;
    }
    public String getRemark() {
        return remark;
    }

    public UsAfterSaleApply setRemark(String remark) {
        this.remark = remark;
        return this;
    }
    public Integer getVersion() {
        return version;
    }

    public UsAfterSaleApply setVersion(Integer version) {
        this.version = version;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public UsAfterSaleApply setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public UsAfterSaleApply setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }
    public Long getUsId() {
        return usId;
    }

    public UsAfterSaleApply setUsId(Long usId) {
        this.usId = usId;
        return this;
    }
    public String getOrderNum() {
        return orderNum;
    }

    public UsAfterSaleApply setOrderNum(String orderNum) {
        this.orderNum = orderNum;
        return this;
    }
    public Integer getType() {
        return type;
    }

    public UsAfterSaleApply setType(Integer type) {
        this.type = type;
        return this;
    }
    public BigDecimal getRefundAmount() {
        return refundAmount;
    }

    public UsAfterSaleApply setRefundAmount(BigDecimal refundAmount) {
        this.refundAmount = refundAmount;
        return this;
    }
    public String getSendAddress() {
        return sendAddress;
    }

    public UsAfterSaleApply setSendAddress(String sendAddress) {
        this.sendAddress = sendAddress;
        return this;
    }
    public String getRefundAddress() {
        return refundAddress;
    }

    public UsAfterSaleApply setRefundAddress(String refundAddress) {
        this.refundAddress = refundAddress;
        return this;
    }
    public String getRefusedReason() {
        return refusedReason;
    }

    public UsAfterSaleApply setRefusedReason(String refusedReason) {
        this.refusedReason = refusedReason;
        return this;
    }
    public String getRedundReason() {
        return redundReason;
    }

    public UsAfterSaleApply setRedundReason(String redundReason) {
        this.redundReason = redundReason;
        return this;
    }
    public String getImg() {
        return img;
    }

    public UsAfterSaleApply setImg(String img) {
        this.img = img;
        return this;
    }
    public String getCourierNumber() {
        return courierNumber;
    }

    public UsAfterSaleApply setCourierNumber(String courierNumber) {
        this.courierNumber = courierNumber;
        return this;
    }
    public Integer getRefundType() {
        return refundType;
    }

    public UsAfterSaleApply setRefundType(Integer refundType) {
        this.refundType = refundType;
        return this;
    }
    public String getContent() {
        return content;
    }

    public UsAfterSaleApply setContent(String content) {
        this.content = content;
        return this;
    }

    public static final String ID = "id";

    public static final String STATUS = "status";

    public static final String REMARK = "remark";

    public static final String VERSION = "version";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String US_ID = "us_id";

    public static final String ORDER_NUM = "order_num";

    public static final String TYPE = "type";

    public static final String REFUND_AMOUNT = "refund_amount";

    public static final String SEND_ADDRESS = "send_address";

    public static final String REFUND_ADDRESS = "refund_address";

    public static final String REFUSED_REASON = "refused_reason";

    public static final String REDUND_REASON = "redund_reason";

    public static final String IMG = "img";

    public static final String COURIER_NUMBER = "courier_number";

    public static final String REFUND_TYPE = "refund_type";

    public static final String CONTENT = "content";

    @Override
    public String toString() {
        return "UsAfterSaleApply{" +
            "id=" + id +
            ", status=" + status +
            ", remark=" + remark +
            ", version=" + version +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", usId=" + usId +
            ", orderNum=" + orderNum +
            ", type=" + type +
            ", refundAmount=" + refundAmount +
            ", sendAddress=" + sendAddress +
            ", refundAddress=" + refundAddress +
            ", refusedReason=" + refusedReason +
            ", redundReason=" + redundReason +
            ", img=" + img +
            ", courierNumber=" + courierNumber +
            ", refundType=" + refundType +
            ", content=" + content +
        "}";
    }

    public final static String[] getFields(String ...noField){
        List<String> list = new ArrayList<>(Arrays.asList(
            UsAfterSaleApply.ID
            ,UsAfterSaleApply.STATUS
            ,UsAfterSaleApply.REMARK
            ,UsAfterSaleApply.VERSION
            ,UsAfterSaleApply.CREATE_TIME
            ,UsAfterSaleApply.UPDATE_TIME
            ,UsAfterSaleApply.US_ID
            ,UsAfterSaleApply.ORDER_NUM
            ,UsAfterSaleApply.TYPE
            ,UsAfterSaleApply.REFUND_AMOUNT
            ,UsAfterSaleApply.SEND_ADDRESS
            ,UsAfterSaleApply.REFUND_ADDRESS
            ,UsAfterSaleApply.REFUSED_REASON
            ,UsAfterSaleApply.REDUND_REASON
            ,UsAfterSaleApply.IMG
            ,UsAfterSaleApply.COURIER_NUMBER
            ,UsAfterSaleApply.REFUND_TYPE
            ,UsAfterSaleApply.CONTENT
        ));
        list.removeAll(new ArrayList<>(Arrays.asList(noField)));
        return list.toArray(new String[0]);
    }
}